package exception;

import IO.Person;

public class throwSemo04 {
    public static void main(String[] args) {
        Person04 p = new Person04();
        try {
            p.setAge(1000);//不满足业务场景
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("此人年龄"+p.getAge());

    }
}
